package cn.edu.wynu.oop.polymorphic;

public class TestCalculator {
    int add(int a, int b) {
        return a + b;
    }

    int add(int a, int b, int c) {
        return a + b + c;
    }

    public static void main(String[] args) {
        TestCalculator calculator = new TestCalculator();
        int ret1 = calculator.add(1, 1);
        int ret2 = calculator.add(1, 1, 1);
        System.out.println(ret1);
        System.out.println(ret2);
    }
}
